/**
 * 
 */
package org.mspring.mlog.service.impl;

import java.util.Date;

import org.mspring.mlog.entity.NewsCatalog;
import org.mspring.mlog.service.NewsCatalogService;
import org.mspring.platform.dao.hibernate.GenericDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 
 * @author Gao Youbo
 * @since 2013年6月28日
 */
@Service
@Transactional
public class NewsCatalogServiceImpl extends GenericDao<NewsCatalog, java.lang.Long> implements NewsCatalogService {

    @Override
    public NewsCatalog save(NewsCatalog object) {
        // TODO Auto-generated method stub
        if (object.getCreateTime() == null) {
            object.setCreateTime(new Date());
        }
        return super.save(object);
    }

}
